﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:local="clr-namespace:NextUIKit.Controls"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="d">
    <Style TargetType="local:SlideView">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:SlideView">
                    <Grid x:Name="SlideViewHost"
                          Width="480"
                          HorizontalAlignment="Center">
                        <Grid x:Name="LeftImageHost"
                              Width="{TemplateBinding Width}"
                              RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <CompositeTransform />
                            </Grid.RenderTransform>
                            <Image x:Name="LeftImage"
                                   Width="{TemplateBinding Width}"
                                   Stretch="UniformToFill" />
                        </Grid>

                        <Grid x:Name="RightImageHost"
                              Width="{TemplateBinding Width}"
                              RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <CompositeTransform />
                            </Grid.RenderTransform>
                            <Image x:Name="RightImage"
                                   Width="{TemplateBinding Width}"
                                   Stretch="UniformToFill" />
                        </Grid>
                        <Grid x:Name="CenterImageHost"
                              Width="{TemplateBinding Width}"
                              RenderTransformOrigin="0.5,0.5">
                            <Grid.RenderTransform>
                                <CompositeTransform />
                            </Grid.RenderTransform>
                            <Image x:Name="CenterImage"
                                   Width="{TemplateBinding Width}"
                                   Stretch="UniformToFill" />
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>